﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GameObjects
{
    public class DrawableCharacter : GameObjects.Character, ISprite
    {
        public Sprite Sprite { get; set; }

        public DrawableCharacter(int id)
            : base(id) { }

        public void Update(GameTime gameTime)
        {
            Sprite.Update(gameTime);
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            Sprite.Draw(gameTime, spriteBatch, this);
        }
    }
}
